import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { UserSongPaidService } from './user_song_paid.service';
import { CreateUserSongPaidDto } from './dto/create-user_song_paid.dto';
import { UpdateUserSongPaidDto } from './dto/update-user_song_paid.dto';

@Controller('user-song-paid')
export class UserSongPaidController {
  constructor(private readonly userSongPaidService: UserSongPaidService) {}

  @Post()
  create(@Body() createUserSongPaidDto: CreateUserSongPaidDto) {
    return this.userSongPaidService.create(createUserSongPaidDto);
  }

  @Get()
  findAll() {
    return this.userSongPaidService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.userSongPaidService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateUserSongPaidDto: UpdateUserSongPaidDto) {
    return this.userSongPaidService.update(+id, updateUserSongPaidDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.userSongPaidService.remove(+id);
  }
}
